package krow.dev.gunpobus.view;

import krow.dev.gunpobus.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class RetryViewWrapper {

	private View mRootView;

	private Button mRetryButton;
	
	public RetryViewWrapper(Context context) {

		LayoutInflater layoutInflater = LayoutInflater.from(context);
		
		mRootView = layoutInflater.inflate(R.layout.view_retry, null);
	
		mRetryButton = (Button) mRootView.findViewById(R.id.button_retry);
	}
	
	public void setRetryClickListener(OnClickListener clickListener){
		
		mRetryButton.setOnClickListener(clickListener);
	}
	
	public View getView(){
		
		return mRootView;
	}
	
	public void setVisibility(int visibility){
		
		mRootView.setVisibility(visibility);
	}
}
